<div>
    <form action="" method="post"   >
        Фильтр по дате <input id="datepicker" type="text" name="date" value="<?=$date?>"/>
        <input type="submit" value="Применить"/>
        <input type="submit" value="Показать все" name="show_all"/>
    </form>
</div>

<table cellpadding="1" cellspacing="1" border="0" width="100%" class="sortabletable"><thead>
    <tr><th>Номер заказа</th><th>Дата заказа</th><th>Клиент</th><th>Наименование продукта</th><th>Цена</th><th>Статус продукта</th></tr></thead>
<tbody>
<?foreach($data as $row):?>

<tr>
    <td><?=$row->id_order?></td>
    <td><?=$row->date?></td>
    <td><?=$row->client?></td>
    <td><?=$row->name?><?=$row->options?><?=$row->komplect?></td>
    <td><?=$row->price?></td>
    <td><form action="" onsubmit="return ajax_status_change(this,'<?=$this->sModuleLink?>')">
            <input type="hidden" class="id_order" name="id_order" value="<?=$row->id_order?>"/>
            <input type="hidden" name="id_product" value="<?=$row->id?>"/>
            Текущий статус: <?=$row->status?><br/><?=$row->select?><br><input type="submit" value="Сменить статус"/></form>
    </td>

</tr>

<?endforeach;?>
</tbody>
</table>